<template>
	<view class="container">
		<uni-card :cover="res.ImageURL">
			<uni-collapse>
				<uni-collapse-item title="识别结果" :open="true" >
					<uni-tag  type="primary" :text="res.ResultType" :circle="true"></uni-tag>
				</uni-collapse-item>
				<uni-collapse-item title="识别算法" :open="true">
				<uni-tag  type="primary" :text="res.AlgorithmUsed" :circle="true"></uni-tag>
				</uni-collapse-item>
				<uni-collapse-item title="识别时间" :open="true">
				<uni-tag  type="primary" :text="res.CreateTime" :circle="true"></uni-tag>
				</uni-collapse-item>
				<uni-collapse-item title="提交设备" :open="true">
				<uni-tag  type="primary" :text="res.Device" :circle="true"></uni-tag>
				</uni-collapse-item>
				<uni-collapse-item title="提交用户" :open="true">
				<uni-tag   :text="username" ></uni-tag>
				</uni-collapse-item>
			</uni-collapse>
		</uni-card>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				res:{},
				username:''

			}
		},
		onLoad:function(e) {
			const str = JSON.parse(decodeURIComponent(e.info))
			this.res = str
			uni.getStorage({
				key:'username',
				success:(res)=> {
					this.username = res.data
				}
			})
		},
		methods:{
		}
	}
</script>

<style>
</style>